package com.tutu.borrow.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Program: SpringCloudAlibaba
 * @Description: dog实体类 测试配置中心yml属性注入
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-12-04 12:43
 **/
@Component
@Data
@ConfigurationProperties(prefix = "dog")
public class Dog {
    private String name;

    private int age;

    private Date bir;
}
